<template>
  <div class="mask" v-if="$store.state.isLoading">
    <div class="load-box">
      <div class="loadingio-spinner-bean-eater-ea31gu08zzg">
        <div class="ldio-1kxoa42zlvt">
          <div>
            <div></div>
            <div></div>
            <div></div>
          </div>
          <div>
            <div></div>
            <div></div>
            <div></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  .load-box {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
  }
  @keyframes ldio-1kxoa42zlvt-1 {
    0% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(-45deg);
    }
    100% {
      transform: rotate(0deg);
    }
  }
  @keyframes ldio-1kxoa42zlvt-2 {
    0% {
      transform: rotate(180deg);
    }
    50% {
      transform: rotate(225deg);
    }
    100% {
      transform: rotate(180deg);
    }
  }
  .ldio-1kxoa42zlvt > div:nth-child(2) {
    transform: translate(-15px, 0);
  }
  .ldio-1kxoa42zlvt > div:nth-child(2) div {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 30px;
    background: #0055a5;
    border-radius: 60px 60px 0 0;
    transform-origin: 30px 30px;
    animation: ldio-1kxoa42zlvt-1 1s linear infinite;
  }
  .ldio-1kxoa42zlvt > div:nth-child(2) div:nth-child(2) {
    animation: ldio-1kxoa42zlvt-2 1s linear infinite;
  }
  .ldio-1kxoa42zlvt > div:nth-child(2) div:nth-child(3) {
    transform: rotate(-90deg);
    animation: none;
  }
  @keyframes ldio-1kxoa42zlvt-3 {
    0% {
      opacity: 0;
      transform: translate(95px, 0);
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translate(35px, 0);
    }
  }
  .ldio-1kxoa42zlvt > div:nth-child(1) {
    display: block;
  }
  .ldio-1kxoa42zlvt > div:nth-child(1) div {
    position: absolute;
    top: 46px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: #45aee7;
    border-radius: 50%;
    animation: ldio-1kxoa42zlvt-3 1s linear infinite;
  }
  .ldio-1kxoa42zlvt > div:nth-child(1) div:nth-child(1) {
    animation-delay: -0.67s;
  }
  .ldio-1kxoa42zlvt > div:nth-child(1) div:nth-child(2) {
    animation-delay: -0.33s;
  }
  .ldio-1kxoa42zlvt > div:nth-child(1) div:nth-child(3) {
    animation-delay: 0s;
  }
  .loadingio-spinner-bean-eater-ea31gu08zzg {
    display: inline-block;
    width: 90px;
    height: 90px;
    overflow: hidden;
  }
  .ldio-1kxoa42zlvt {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0) scale(0.9);
    transform-origin: 0 0; /* see note above */
    backface-visibility: hidden;
  }
  .ldio-1kxoa42zlvt div {
    box-sizing: content-box;
  }
}
</style>
